
#ifndef __DBXUTIL_H__
#define __DBXUTIL_H__

#include "acadstrc.h"
#include "adesk.h"
#include "adsdef.h"
#include "dbidar.h"
#include "dbid.h"
#include "acutmem.h"

#include "windows.h"

#include "../inc/zdbxutil.h"

#ifndef ACHAR
#define ACHAR		ZTCHAR
#endif //#ifndef ACHAR

#ifndef ADESK_STDCALL
#define ADESK_STDCALL		ZSOFT_STDCALL
#endif //#ifndef ADESK_STDCALL

#ifndef AcCmColor
#define AcCmColor		UcCmColor
#endif //#ifndef AcCmColor

#ifndef AcDb
#define AcDb		UcDb
#endif //#ifndef AcDb

#ifndef AcDbDatabase
#define AcDbDatabase		UcDbDatabase
#endif //#ifndef AcDbDatabase

#ifndef AcDbObject
#define AcDbObject		UcDbObject
#endif //#ifndef AcDbObject

#ifndef AcDbObjectId
#define AcDbObjectId		UcDbObjectId
#endif //#ifndef AcDbObjectId

#ifndef AcDbObjectIdArray
#define AcDbObjectIdArray		UcDbObjectIdArray
#endif //#ifndef AcDbObjectIdArray

#ifndef AcDbOle2Frame
#define AcDbOle2Frame		UcDbOle2Frame
#endif //#ifndef AcDbOle2Frame

#ifndef AcGeMatrix3d
#define AcGeMatrix3d		UcGeMatrix3d
#endif //#ifndef AcGeMatrix3d

#ifndef AcGePoint3d
#define AcGePoint3d		UcGePoint3d
#endif //#ifndef AcGePoint3d

#ifndef AcGeVector3d
#define AcGeVector3d		UcGeVector3d
#endif //#ifndef AcGeVector3d

#ifndef Acad
#define Acad		Ucad
#endif //#ifndef Acad

#ifndef acdbCreateViewByViewport
#define acdbCreateViewByViewport		ucdbCreateViewByViewport
#endif //#ifndef acdbCreateViewByViewport

#ifndef acdbDwkFileExists
#define acdbDwkFileExists		ucdbDwkFileExists
#endif //#ifndef acdbDwkFileExists

#ifndef acdbEcs2Ucs
#define acdbEcs2Ucs		ucdbEcs2Ucs
#endif //#ifndef acdbEcs2Ucs

#ifndef acdbEcs2Wcs
#define acdbEcs2Wcs		ucdbEcs2Wcs
#endif //#ifndef acdbEcs2Wcs

#ifndef acdbForceTextAdjust
#define acdbForceTextAdjust		ucdbForceTextAdjust
#endif //#ifndef acdbForceTextAdjust

#ifndef acdbGetArcLengthSymbolPlacement
#define acdbGetArcLengthSymbolPlacement		ucdbGetArcLengthSymbolPlacement
#endif //#ifndef acdbGetArcLengthSymbolPlacement

#ifndef acdbGetCurVportId
#define acdbGetCurVportId		ucdbGetCurVportId
#endif //#ifndef acdbGetCurVportId

#ifndef acdbGetCurVportTableRecordId
#define acdbGetCurVportTableRecordId		ucdbGetCurVportTableRecordId
#endif //#ifndef acdbGetCurVportTableRecordId

#ifndef acdbGetDimAngExtOn
#define acdbGetDimAngExtOn		ucdbGetDimAngExtOn
#endif //#ifndef acdbGetDimAngExtOn

#ifndef acdbGetDimBreakSize
#define acdbGetDimBreakSize		ucdbGetDimBreakSize
#endif //#ifndef acdbGetDimBreakSize

#ifndef acdbGetDimExt1Linetype
#define acdbGetDimExt1Linetype		ucdbGetDimExt1Linetype
#endif //#ifndef acdbGetDimExt1Linetype

#ifndef acdbGetDimExt2Linetype
#define acdbGetDimExt2Linetype		ucdbGetDimExt2Linetype
#endif //#ifndef acdbGetDimExt2Linetype

#ifndef acdbGetDimExtensionLength
#define acdbGetDimExtensionLength		ucdbGetDimExtensionLength
#endif //#ifndef acdbGetDimExtensionLength

#ifndef acdbGetDimFlipArrow
#define acdbGetDimFlipArrow		ucdbGetDimFlipArrow
#endif //#ifndef acdbGetDimFlipArrow

#ifndef acdbGetDimFlipArrowWhich
#define acdbGetDimFlipArrowWhich		ucdbGetDimFlipArrowWhich
#endif //#ifndef acdbGetDimFlipArrowWhich

#ifndef acdbGetDimJogSymbolPosition
#define acdbGetDimJogSymbolPosition		ucdbGetDimJogSymbolPosition
#endif //#ifndef acdbGetDimJogSymbolPosition

#ifndef acdbGetDimJogSymbolSize
#define acdbGetDimJogSymbolSize		ucdbGetDimJogSymbolSize
#endif //#ifndef acdbGetDimJogSymbolSize

#ifndef acdbGetDimLineLinetype
#define acdbGetDimLineLinetype		ucdbGetDimLineLinetype
#endif //#ifndef acdbGetDimLineLinetype

#ifndef acdbGetDimTextBackground
#define acdbGetDimTextBackground		ucdbGetDimTextBackground
#endif //#ifndef acdbGetDimTextBackground

#ifndef acdbGetDimTolAlign
#define acdbGetDimTolAlign		ucdbGetDimTolAlign
#endif //#ifndef acdbGetDimTolAlign

#ifndef acdbGetDynDimStyleId
#define acdbGetDynDimStyleId		ucdbGetDynDimStyleId
#endif //#ifndef acdbGetDynDimStyleId

#ifndef acdbGetExemptCheckFlag
#define acdbGetExemptCheckFlag		ucdbGetExemptCheckFlag
#endif //#ifndef acdbGetExemptCheckFlag

#ifndef acdbGetExtnames
#define acdbGetExtnames		ucdbGetExtnames
#endif //#ifndef acdbGetExtnames

#ifndef acdbGetFixedLengthExtLineEnabled
#define acdbGetFixedLengthExtLineEnabled		ucdbGetFixedLengthExtLineEnabled
#endif //#ifndef acdbGetFixedLengthExtLineEnabled

#ifndef acdbGetLargeRadDimJogAngle
#define acdbGetLargeRadDimJogAngle		ucdbGetLargeRadDimJogAngle
#endif //#ifndef acdbGetLargeRadDimJogAngle

#ifndef acdbGetPreviewBitmapFromDwg
#define acdbGetPreviewBitmapFromDwg		ucdbGetPreviewBitmapFromDwg
#endif //#ifndef acdbGetPreviewBitmapFromDwg

#ifndef acdbGetProxyInfo
#define acdbGetProxyInfo		ucdbGetProxyInfo
#endif //#ifndef acdbGetProxyInfo

#ifndef acdbGetRadialExtensionAngles
#define acdbGetRadialExtensionAngles		ucdbGetRadialExtensionAngles
#endif //#ifndef acdbGetRadialExtensionAngles

#ifndef acdbGetReservedString
#define acdbGetReservedString		ucdbGetReservedString
#endif //#ifndef acdbGetReservedString

#ifndef acdbGetUnitsConversion
#define acdbGetUnitsConversion		ucdbGetUnitsConversion
#endif //#ifndef acdbGetUnitsConversion

#ifndef acdbGetViewportVisualStyle
#define acdbGetViewportVisualStyle		ucdbGetViewportVisualStyle
#endif //#ifndef acdbGetViewportVisualStyle

#ifndef acdbIsInLongTransaction
#define acdbIsInLongTransaction		ucdbIsInLongTransaction
#endif //#ifndef acdbIsInLongTransaction

#ifndef acdbIsReservedString
#define acdbIsReservedString		ucdbIsReservedString
#endif //#ifndef acdbIsReservedString

#ifndef acdbOleGetOriginalSelectedFontName
#define acdbOleGetOriginalSelectedFontName		ucdbOleGetOriginalSelectedFontName
#endif //#ifndef acdbOleGetOriginalSelectedFontName

#ifndef acdbOleGetOriginalSelectedFontPointSize
#define acdbOleGetOriginalSelectedFontPointSize		ucdbOleGetOriginalSelectedFontPointSize
#endif //#ifndef acdbOleGetOriginalSelectedFontPointSize

#ifndef acdbOleGetOriginalSelectedTextSizeInAcadUnits
#define acdbOleGetOriginalSelectedTextSizeInAcadUnits		ucdbOleGetOriginalSelectedTextSizeInUcadUnits
#endif //#ifndef acdbOleGetOriginalSelectedTextSizeInAcadUnits

#ifndef acdbOleGetOriginalWidthHeight
#define acdbOleGetOriginalWidthHeight		ucdbOleGetOriginalWidthHeight
#endif //#ifndef acdbOleGetOriginalWidthHeight

#ifndef acdbOleGetRotationMatrix
#define acdbOleGetRotationMatrix		ucdbOleGetRotationMatrix
#endif //#ifndef acdbOleGetRotationMatrix

#ifndef acdbOleGetSelectedFontName
#define acdbOleGetSelectedFontName		ucdbOleGetSelectedFontName
#endif //#ifndef acdbOleGetSelectedFontName

#ifndef acdbOleGetSelectedFontPointSize
#define acdbOleGetSelectedFontPointSize		ucdbOleGetSelectedFontPointSize
#endif //#ifndef acdbOleGetSelectedFontPointSize

#ifndef acdbOleGetSelectedTextSizeInAcadUnits
#define acdbOleGetSelectedTextSizeInAcadUnits		ucdbOleGetSelectedTextSizeInUcadUnits
#endif //#ifndef acdbOleGetSelectedTextSizeInAcadUnits

#ifndef acdbOleHitTest
#define acdbOleHitTest		ucdbOleHitTest
#endif //#ifndef acdbOleHitTest

#ifndef acdbOleSetOriginalSelectedFontName
#define acdbOleSetOriginalSelectedFontName		ucdbOleSetOriginalSelectedFontName
#endif //#ifndef acdbOleSetOriginalSelectedFontName

#ifndef acdbOleSetOriginalSelectedFontPointSize
#define acdbOleSetOriginalSelectedFontPointSize		ucdbOleSetOriginalSelectedFontPointSize
#endif //#ifndef acdbOleSetOriginalSelectedFontPointSize

#ifndef acdbOleSetOriginalSelectedTextSizeInAcadUnits
#define acdbOleSetOriginalSelectedTextSizeInAcadUnits		ucdbOleSetOriginalSelectedTextSizeInUcadUnits
#endif //#ifndef acdbOleSetOriginalSelectedTextSizeInAcadUnits

#ifndef acdbOleSetOriginalWidthHeight
#define acdbOleSetOriginalWidthHeight		ucdbOleSetOriginalWidthHeight
#endif //#ifndef acdbOleSetOriginalWidthHeight

#ifndef acdbOleSetSelectedFontName
#define acdbOleSetSelectedFontName		ucdbOleSetSelectedFontName
#endif //#ifndef acdbOleSetSelectedFontName

#ifndef acdbOleSetSelectedFontPointSize
#define acdbOleSetSelectedFontPointSize		ucdbOleSetSelectedFontPointSize
#endif //#ifndef acdbOleSetSelectedFontPointSize

#ifndef acdbOleSetSelectedTextSizeInAcadUnits
#define acdbOleSetSelectedTextSizeInAcadUnits		ucdbOleSetSelectedTextSizeInUcadUnits
#endif //#ifndef acdbOleSetSelectedTextSizeInAcadUnits

#ifndef acdbQueueForRegen
#define acdbQueueForRegen		ucdbQueueForRegen
#endif //#ifndef acdbQueueForRegen

#ifndef acdbSetArcLengthSymbolPlacement
#define acdbSetArcLengthSymbolPlacement		ucdbSetArcLengthSymbolPlacement
#endif //#ifndef acdbSetArcLengthSymbolPlacement

#ifndef acdbSetDimAngExtOn
#define acdbSetDimAngExtOn		ucdbSetDimAngExtOn
#endif //#ifndef acdbSetDimAngExtOn

#ifndef acdbSetDimBreakSize
#define acdbSetDimBreakSize		ucdbSetDimBreakSize
#endif //#ifndef acdbSetDimBreakSize

#ifndef acdbSetDimExt1Linetype
#define acdbSetDimExt1Linetype		ucdbSetDimExt1Linetype
#endif //#ifndef acdbSetDimExt1Linetype

#ifndef acdbSetDimExt2Linetype
#define acdbSetDimExt2Linetype		ucdbSetDimExt2Linetype
#endif //#ifndef acdbSetDimExt2Linetype

#ifndef acdbSetDimExtensionLength
#define acdbSetDimExtensionLength		ucdbSetDimExtensionLength
#endif //#ifndef acdbSetDimExtensionLength

#ifndef acdbSetDimFlipArrow
#define acdbSetDimFlipArrow		ucdbSetDimFlipArrow
#endif //#ifndef acdbSetDimFlipArrow

#ifndef acdbSetDimFlipArrowWhich
#define acdbSetDimFlipArrowWhich		ucdbSetDimFlipArrowWhich
#endif //#ifndef acdbSetDimFlipArrowWhich

#ifndef acdbSetDimJogSymbolPosition
#define acdbSetDimJogSymbolPosition		ucdbSetDimJogSymbolPosition
#endif //#ifndef acdbSetDimJogSymbolPosition

#ifndef acdbSetDimJogSymbolSize
#define acdbSetDimJogSymbolSize		ucdbSetDimJogSymbolSize
#endif //#ifndef acdbSetDimJogSymbolSize

#ifndef acdbSetDimLineLinetype
#define acdbSetDimLineLinetype		ucdbSetDimLineLinetype
#endif //#ifndef acdbSetDimLineLinetype

#ifndef acdbSetDimTextBackground
#define acdbSetDimTextBackground		ucdbSetDimTextBackground
#endif //#ifndef acdbSetDimTextBackground

#ifndef acdbSetDimTolAlign
#define acdbSetDimTolAlign		ucdbSetDimTolAlign
#endif //#ifndef acdbSetDimTolAlign

#ifndef acdbSetExemptCheckFlag
#define acdbSetExemptCheckFlag		ucdbSetExemptCheckFlag
#endif //#ifndef acdbSetExemptCheckFlag

#ifndef acdbSetExtnames
#define acdbSetExtnames		ucdbSetExtnames
#endif //#ifndef acdbSetExtnames

#ifndef acdbSetFixedLengthExtLineEnabled
#define acdbSetFixedLengthExtLineEnabled		ucdbSetFixedLengthExtLineEnabled
#endif //#ifndef acdbSetFixedLengthExtLineEnabled

#ifndef acdbSetLargeRadDimJogAngle
#define acdbSetLargeRadDimJogAngle		ucdbSetLargeRadDimJogAngle
#endif //#ifndef acdbSetLargeRadDimJogAngle

#ifndef acdbSetRadialExtensionAngles
#define acdbSetRadialExtensionAngles		ucdbSetRadialExtensionAngles
#endif //#ifndef acdbSetRadialExtensionAngles

#ifndef acdbSetViewportVisualStyle
#define acdbSetViewportVisualStyle		ucdbSetViewportVisualStyle
#endif //#ifndef acdbSetViewportVisualStyle

#ifndef acdbUcs2Ecs
#define acdbUcs2Ecs		ucdbUcs2Ecs
#endif //#ifndef acdbUcs2Ecs

#ifndef acdbUcs2Wcs
#define acdbUcs2Wcs		ucdbUcs2Wcs
#endif //#ifndef acdbUcs2Wcs

#ifndef acdbUcsMatrix
#define acdbUcsMatrix		ucdbUcsMatrix
#endif //#ifndef acdbUcsMatrix

#ifndef acdbWcs2Ecs
#define acdbWcs2Ecs		ucdbWcs2Ecs
#endif //#ifndef acdbWcs2Ecs

#ifndef acdbWcs2Ucs
#define acdbWcs2Ucs		ucdbWcs2Ucs
#endif //#ifndef acdbWcs2Ucs

#ifndef acdbXlateReservedString
#define acdbXlateReservedString		ucdbXlateReservedString
#endif //#ifndef acdbXlateReservedString

#ifndef acutmem
#define acutmem		ucutmem
#endif //#ifndef acutmem

#ifndef ads_point
#define ads_point		zds_point
#endif //#ifndef ads_point

#ifndef acdbSwapBlockEntities
#define acdbSwapBlockEntities		ucdbSwapBlockEntities
#endif //#ifndef acdbSwapBlockEntities

#endif //#ifndef __DBXUTIL_H__
